// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
// import axios from 'axios'
import axios from './assets/js/fetch.js'
import router from './router'
import iView from 'iview'
// import 'iview/dist/styles/iview.css'
import './assets/css/green-theme/index.less'
import layout from "./assets/js/layout.js"

// vue-kindeditor  插件
import VueKindEditor from 'vue-kindeditor'
import 'kindeditor/kindeditor-all-min.js'
import 'kindeditor/themes/default/default.css'
Vue.use(VueKindEditor)

//处理兄弟之间的传值
var Event = new Vue(); // 创建一个空的vue示例
Vue.prototype.$eventHandle = Event;


Vue.prototype.$http = axios
Vue.prototype.$layout = layout

Vue.use(iView)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
